package com.soho.core;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.soho.model.Log;

public class MyExceptionInterceptor implements Interceptor {
  public void intercept(Invocation inv) {
    try {
      inv.invoke();
    }
    catch(Exception e) {
    	Log.record("MyExceptionInterceptor", e.getMessage());
    }
  }
}